package com.yigo.toc.infra.repo.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.tangzc.mpe.autotable.annotation.Column;
import com.tangzc.mpe.autotable.annotation.ColumnId;
import com.tangzc.mpe.autotable.annotation.Table;
import com.tangzc.mpe.autotable.strategy.mysql.data.MysqlTypeConstant;
import com.yigo.framework.base.BasePO;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author chenzl
 */
@Data
@Table(value = "toc_tc_line", comment = "订单行表")
public class TocOrderLinePO extends BasePO {
    @ColumnId(mode = IdType.ASSIGN_ID, comment = "id主键", type = MysqlTypeConstant.BIGINT, length = 20)
    private Long id;
    @Column(comment = "头表主键", length = 20, notNull = true)
    private Long headId;
    @Column(comment = "商品编码", length = 100, notNull = true)
    private String productCode;
    @Column(comment = "商品名称", length = 100, notNull = true)
    private String productName;
    @Column(comment = "实付单价", length = 10, defaultValue = "0")
    private BigDecimal actualPrice;
    @Column(comment = "下单数量", length = 10, defaultValue = "0")
    private Integer orderQty;
    @Column(comment = "发货数量", length = 10, defaultValue = "0")
    private Integer deliverQty;
    @Column(comment = "取消数量", length = 10, defaultValue = "0")
    private Integer cancelQty;
}
